<template>
    <div class="flex_column mask_container">
        <div class="mask_bg"/>
        <span class="title">{{title}}</span>
        <span class="content">{{content}}</span>
    </div>
</template>

<script>
    export default {
        name:"test",
        props:['title','content']
    }
</script>

<style lang="scss">

    .mask_container{
        position: relative;
        align-items: center;
        justify-content: space-around;
        max-height: 300px;
        max-width: 1200px;
        margin-left: 20%;
        margin-right: 20%;
        /*margin-bottom: 4rem;*/
        padding-top: 2rem;

        span{
            color: #FFFFFF;
        }

        .title{
            font-size: $fz26;
            font-weight: 400;
        }
        .content{
            font-size: $fz14;
            font-weight: 400;
            text-align: justify;
            padding: 2.4rem  2.72rem;
            line-height: $fz20;
        }
        .mask_bg{
            position: absolute;
            left: 0;
            top: 0;
            right: 0;
            bottom: 0;
            background-color: black;
            opacity: 0.2;
        }
    }


    /**
    移动端样式
     */
    @media screen and (max-width: $mobile_width) {
        .mask_container {
            position: relative;
            flex: 1;
            /*margin-top: 62px;*/
            margin-left: 0px;
            margin-right: 0px;
            margin-bottom: 0px;

            .title{
                font-size: $fz16;
                font-weight: 400;
                margin: 0px 20px;
            }
            .content{
                font-size: $fz12;
                font-weight: 400;
                text-align: justify;
                padding: 0px  0px;
                margin: 0px 20px;
            }
            .mask_bg{
                position: absolute;
                left: 0;
                top: 0;
                right: 0;
                bottom: 0;
                opacity: 0.2;
            }
        }
    }

</style>
